package com.xmy.cultivate.service.impl;

import com.xmy.cultivate.entity.StudentForDataType;
import com.xmy.cultivate.mapper.StudentForDataTypeMapper;
import com.xmy.cultivate.service.IStudentForDataTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2024-01-08
 */
@Service
public class StudentForDataTypeServiceImpl extends ServiceImpl<StudentForDataTypeMapper, StudentForDataType> implements IStudentForDataTypeService {

    @Autowired
    StudentForDataTypeMapper studentForDataTypeMapper;

    @Override
    public Long getIdForType(Integer type){
        return studentForDataTypeMapper.getIdForType(type);
    }
}
